package com.fak.wid;



import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.RelativeLayout.LayoutParams;

public class Help_activity extends Activity {
	
	LinearLayout linLayout;
	LinearLayout.LayoutParams linLayoutParam;
	@Override
	public void onCreate(Bundle savedInstanceState) {  
        super.onCreate(savedInstanceState);  
        ScrollView scroll = new ScrollView(Help_activity.this);
        scroll.setScrollContainer(true);
        linLayoutParam = new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); 
        setContentView(scroll, linLayoutParam);
        
        linLayout= new LinearLayout(Help_activity.this);
		 linLayout.setOrientation(LinearLayout.VERTICAL);
		 linLayout.setScrollContainer(true);
        
		
		 scroll.addView(linLayout, linLayoutParam);
		 
		 TextView tvl11 = new TextView(Help_activity.this);
	        tvl11.setText("Âíèìàíèå ÈÍÑÒÐÓÊÖÈß Öèòàòû ïîáîëüøå!");
	        tvl11.setGravity(Gravity.CENTER);
	        tvl11.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
	        linLayout.addView(tvl11);
		
		    TextView tvl = new TextView(Help_activity.this);
	        tvl.setText("Íàæàòèå íà òåêñò âèäæåòà âûçîâåò îáíîâëåíèå öèòàòû. À òàê æå îáíîâëåíèå ïðîèñõîäèò àâòîìàòè÷åñêè.");
	        tvl.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
	        linLayout.addView(tvl);
	        
	        ImageView imview = new ImageView(Help_activity.this);
	        imview.setBackgroundResource(R.drawable.add_hd_on);
	        imview.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
	        linLayout.addView(imview);

	        
	        TextView tvp = new TextView(Help_activity.this);
	        tvp.setText("Íàæàòèå íà çíàê ïëþñ, êîòîðûé èçîáðàæåí âûøå, äîáàâèò öèòàòó â ñïèñîê 'Ëþáèìûå'.");
	        tvp.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
	        linLayout.addView(tvp);
	        
	        ImageView imview2 = new ImageView(Help_activity.this);
	        imview2.setBackgroundResource(R.drawable.list_hd_on);
	        imview2.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
	        linLayout.addView(imview2);

	        
	        TextView tvp2 = new TextView(Help_activity.this);
	        tvp2.setText("Íàæàòèå íà çíàê ëèñòêà, êîòîðûé èçîáðàæåí âûøå, îòêðîåò ñïèñîê 'Ëþáèìûå'. \n \n");
	        tvp2.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
	        linLayout.addView(tvp2);
	        
	        //
	        
	        ImageView im = new ImageView(Help_activity.this);
	        im.setBackgroundResource(R.drawable.styl_img);
	        im.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, 2));
	        linLayout.addView(im);
	       
	        
	        //
	        
	        TextView tvl22 = new TextView(Help_activity.this);
	        tvl22.setText("\n \n Âíèìàíèå ÈÍÑÒÐÓÊÖÈß Öèòàòû ïîìåíüøå!");
	        tvl22.setGravity(Gravity.CENTER);
	        tvl22.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
	        linLayout.addView(tvl22);
		
	        TextView tvl1 = new TextView(Help_activity.this);
   	        tvl1.setText("Íàæàòèå íà òåêñò âèäæåòà, äîáàâèò òåêñò â ñïèñîê 'Ëþáèìûå'. ÎÁÍÎÂËÅÍÈÅ Öèòàò ïðîèñõîäèò àâòîìàòè÷åñêè.");
   	        tvl1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
   	        linLayout.addView(tvl1);
   	        
   	        ImageView imview1 = new ImageView(Help_activity.this);
   	        imview1.setBackgroundResource(R.drawable.list_hd_on);
   	        imview1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
   	        linLayout.addView(imview1);

   	        
   	        TextView tvp1 = new TextView(Help_activity.this);
   	        tvp1.setText("Íàæàòèå íà çíàê ëèñòêà, êîòîðûé èçîáðàæåí âûøå, îòêðîåò ñïèñîê 'Ëþáèìûå'.");
   	        tvp1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
   	        linLayout.addView(tvp1);
   	        
   	        
   	        
   	        LinearLayout rl = new LinearLayout(Help_activity.this);
   	        rl.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
   	        rl.setPadding(5, 15, 5, 5);
   	        rl.setGravity(Gravity.CENTER_HORIZONTAL);
   	        
   	        
   	        Button btN = new Button(Help_activity.this);
   	        btN.setText("Âûõîä");
   	        btN.setOnClickListener(new OnClickListener() {
				
				public void onClick(View v) {
					// TODO Auto-generated method stub
					finish();
				}
			});
   	        rl.addView(btN);
   	        
   	        
   	        linLayout.addView(rl);
  }
}